package cn.janescott.feigncustom.service;

import cn.janescott.feigncustom.configuration.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author scott
 * @date 2019/1/4
 */
@FeignClient(name = "EUREKA-CLIENT", path = "/query", configuration = FeignConfiguration.class)
public interface EurekaService {

    /**
     * 查询注册中心地址
     * @return
     */
    @GetMapping("/getEurekaServerUrl")
    String getEurekaServerUrl();

    /**
     * 查询服务端地址
     * @return
     */
    @GetMapping("/getEurekaInfo")
    String getEurekaInfo();

}
